﻿using SHRIS.MIS.Entity.SystemManage;
using SHRIS.MIS.Model.Param.SystemManage;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace SHRIS.MIS.IService.SystemManage
{
    public interface IDepartmentService
    {
        Task<List<DepartmentEntity>> GetList(DepartmentListParam param);

        Task<DepartmentEntity> GetEntity(Guid id);

        Task<int> GetMaxSort();

        bool ExistDepartmentName(DepartmentEntity entity);

        bool ExistChildrenDepartment(Guid id);

        Task SaveForm(DepartmentEntity entity);

        Task DeleteForm(string ids);
    }
}
